﻿using RRQMMVVM;

namespace ViewModel.ViewModels
{
    public class NewFriendRequestItemViewModel : ContactItemViewModel
    {
        public NewFriendRequestItemViewModel()
        {
            this.AgreeRequestCommand = new ExecuteCommand(AgreeRequest);
        }



        #region Command
        public ExecuteCommand AgreeRequestCommand { get; set; }

        #endregion Command

        #region 属性

        private bool buttonEnable = true;

        public bool ButtonEnable
        {
            get { return buttonEnable; }
            set { buttonEnable = value; OnPropertyChanged(); }
        }

        #endregion 属性



        #region 绑定方法

        private void AgreeRequest()
        {
            //TransferMessage transferMessage = new TransferMessage();
            //transferMessage.TargetAccount = this.Account;
            //Confirm confirm = TransferClient.NewFriendAgreeRequest(transferMessage);
            //if (confirm.Status)
            //{
            //    this.ButtonEnable = false;
            //}
        }

        #endregion 绑定方法
    }
}